"""
计算器
"""
from math import sqrt


# 加法addition
def add(x, y):
    return x + y


# 减法subtraction
def sub(x, y):
    return x - y


# 乘法multiplication
def mul(x, y):
    return x * y


# 除法division
def div(x, y):
    return x / y


# 整除
def div_(x, y):
    return x // y


# 取余remainder
def rem(x, y):
    return x % y


# 乘方Power
def pow(x, y):
    return x ** y


# 开方Square root
def sqr(x):
    return sqrt(x)


# return (a, b, c) 等同于 return a, b, c，返回的是一个元组
def foo(a, b, c):
    print(a, b, c)
    return (a, b, c)


if __name__ == '__main__':
    res_add = add(10, 20)
    print(res_add)
    res_sub = sub(10, 20)
    print(res_sub)
    res_mul = mul(10, 20)
    print(res_mul)
    res_div = div(10, 20)
    print(res_div)
    res_div_ = div_(10, 20)
    print(res_div_)
    res_rem = rem(10, 20)
    print(res_rem)
    res_pow = pow(2, 4)
    print(res_pow)
    res_sqr = sqr(10)
    print(res_sqr)

    a = 'a'
    b = 'b'
    c = 'c'
    result = foo(c, b, a)
    print(result)